// 公有部分
article{
    background-color: rgba(241, 243, 245, 1);
    position: relative;
}
section{
    margin-top: 24px;
    width: 100%;
    // 每个模块的抬头
    .title{
        align-items: center;
        height: 64px;
        font-weight: 400;
        color: rgb(0, 0, 0);
        cursor: pointer;
        .left_title{
            justify-content: flex-start;
            align-items: center;
            width: 90%;
            height: 64px;
            &>span{margin-right: 40px;}
        }
        // title放大
        .chosen{
            font-size: 24px;
            line-height: 32px;
        }
        .right_title{
            justify-content: flex-end;
            align-items: center;
            width: 10%;
            font-size: 14px;
            line-height: 19px;
            opacity: 0.6;
        }
        .right_title::after{
            content: "";
            display: inline-block;
            width: 17px;
            height: 18px;
            background-image: url('/img/icon03.svg');
            background-position: -48px 0;
        }
        // .right_title:hover{color: #cf0a2c;}
    }
    // 每个模块的主要内容（-各个商品模块）
    .main{
        flex-wrap: wrap;
    }
    // 商品模块
    .commodity{
        flex-direction: column;
        align-items: center;
        margin-left: 12px;
        width: 291px;
        height: 387px;
        background-color: rgb(255, 255, 255);
        cursor: pointer;
        .tag{
            margin-right: 4px;
            padding: 0 4px;
            flex-shrink: 0;
            // width: 56px;
            height: 16px;
            line-height: 16px;
            text-align: center;
            font-size: 12px;
            background-image: linear-gradient(1.5708rad, rgb(207, 10, 44), rgb(255, 45, 78));
            border-radius: 4px;
            color: rgb(255, 255, 255);
        }
        .text_ellipsis{
            .good_title,.good_dept{
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
        }
        .good_picture{
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 183px;
            img{
                width: 142px;
                height: 142px;
            }
        }
        .good_info{
            box-sizing: border-box;
            padding: 8px 24px 27px 24px;
            width: 100%;
            height: 107px;
            text-align: center;
        }
        .good_title{
            margin: 4px auto;
            line-height: 19px;
            font-size: 14px;
        }
        .good_dept{
            margin-bottom: 10px;
            height: 18px;
            line-height: 18px;
            font-size: 13px;
            opacity: 0.5;
        }
        .good_price{
            .new{
                margin-right: 8px;
                line-height: 21px;
                color: rgb(207, 10, 44);
                font-size: 16px;
                vertical-align: middle;
            }
            .old{
                line-height: 16px;
                color: rgb(0, 0, 0);
                font-size: 12px;
                text-decoration: line-through;
                opacity: 0.5;
                vertical-align: middle;
            }
        }
    }
    .commodity:hover{
        box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 36px;
    }
}

// 轮播
.Carousel{
    margin: auto;
    // width: 1519px;
    height: 550px;
    // border: 1px solid #000;
    overflow: hidden;
    position: relative;
    .carousel{
        position: relative;
        width: 100%;
        height: 100%;
        align-items: center;
        // 底部页索引
        .carousel-indicators{
            position: absolute;
            bottom: 24px;
            height: 32px;
            li{
                margin: auto 6px;
                width: 8px;
                height: 8px;
                background-color: rgba(0, 0, 0, 0.2);
                border: 0;
                border-radius: 8px;
            }
            .active{
                width: 12px;
                background-color: rgba(255, 255, 255, 1);
            }
        }
        // 图片
        .carousel-inner{
            width: 100%;
            height: 100%;
            .carousel-item{
                width: 100%;
                height: 100%;
                position: relative;
                .imgContainer{
                    background-size: cover;
                    background-position: center center;
                    background-color: transparent;
                    height: 100%;
                    width: 100%;
                    cursor: pointer;
                }
                .banner1{background-image: url('/img//carousel01.webp');}
                .banner2{background-image: url('/img//carousel02.webp');}
                .banner3{background-image: url('/img//carousel03.webp');}
                .banner4{background-image: url('/img//carousel04.webp');}
                .banner5{background-image: url('/img//carousel05.webp');}
                .banner6{background-image: url('/img//carousel06.webp');}
                .banner7{background-image: url('/img//carousel07.webp');}
                .banner8{background-image: url('/img//carousel08.webp');}

            }
        }
    }
}

// 左侧分类+左右切换
.leftNavBox{
    width: 1200px;
    height: 550px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    // 左侧分类
    .leftNav{
        position: absolute;
        // left: 160px;
        // left: 30px;
        top: 27px;
        .main{
            box-shadow: 0 0 36px rgba(0, 0, 0, 0.1);
            flex-direction: row;
        }
        .firstNav{
            flex-direction: column;
            padding-top: 8px;
            padding-bottom: 8px;
            height: 496px;
            background-color: rgba(255, 255, 255, 0.9);
            .firstNavList{
                width: 200px;
                height: 40px;
                position: relative;
                cursor: pointer;
                span{
                    display: block;
                    align-items: center;
                    font-size: 14px;
                    color: rgb(0, 0, 0);
                    opacity: 0.6;
                    line-height: 40px;
                }
                .left{
                    justify-content: flex-start;
                    padding-left: 24px;
                    width: 80%;
                }
                .right{
                    width: 20%;
                    position: relative;
                }
                .right::after{
                    margin: auto;
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    content: "";
                    display: block;
                    width: 12px;
                    height: 12px;
                    background-image: url('/img/icon03.svg');
                    background-position: -64px -2px;
                }


                // 二级导航
                .secondNav{
                    display: none;
                    position: absolute;
                    left: 200px;
                    // top: -8px;
                    z-index: 100;
                    padding: 20px 16px 0 16px;
                    width: 470px;
                    height: 496px;
                    background-color: rgba(255, 255, 255, 1);
                    box-shadow: 30px 0px 36px rgba(0, 0, 0, 0.12);
                    overflow: hidden;
                    ul{
                        width: 100%;
                        height: 100%;
                        flex-direction: column;
                        justify-content: flex-start;
                        align-content: flex-start;
                        flex-wrap: wrap;
                        li{cursor: pointer;}
                        .moreList{
                            box-sizing: content-box;
                            margin-bottom: 23px;
                            margin-right: 16px;
                            width: 214px;
                            height: 72px;
                            align-items: center;
                            justify-content: flex-start;
                            flex-direction: row;
                            img{
                                margin-left: 8px;
                                width: 52px;
                                height: 52px;
                            }
                            span{
                                display: block;
                                margin-left: 8px;
                                color: rgb(0, 0, 0);
                                opacity: 0.6;
                                line-height: 52px;
                                font-size: 14px;
                                overflow: hidden;
                                text-overflow: ellipsis;
                            }
                        }
                        // 查看全部
                        .seeAll{
                            margin: 13px 0 0 14px;
                            width: 136px;
                            height: 44px;
                            .seeAllBox{
                                width: 136px;
                                height: 44px;
                                background-image: url('/img/chaImage.png');
                                background-repeat: no-repeat;
                                background-size: cover;
                                background-position: center center;
                                span{
                                    display: block;
                                    width: 77px;
                                    margin-left: 56px;
                                    line-height: 44px;
                                    opacity: 0.4;
                                    font-size: 13px;
                                    color: rgb(0, 0, 0);
                                    text-align: left;

                                }
                            }
                        }
                        li:hover span{color: #cb242b;opacity: 1;}
                    }
                }
                // 手机
                &.phone .secondNav{width: 470px; top: -8px;}
                // 电脑
                &.computer .secondNav{width: 706px; top: -48px;}
                // 平板
                &.pad .secondNav{width: 470px; top: -88px;}
                // 智慧屏
                &.smart_screen .secondNav{width: 470px; top: -128px;}
                // 穿戴
                &.wearing .secondNav{width: 470px; top: -168px;}
                // 耳机音箱
                &.headphone_speakers .secondNav{width: 470px; top: -208px;}
                // 门锁路由
                &.door_lock_routing .secondNav{width: 235px; top: -248px;}
                // 配件
                &.fittings .secondNav{width: 706px; top: -288px;}
                // 生态产品
                &.ecological_products .secondNav{width: 470px; top: -328px;}
                // 家用电器
                &.household_appliances .secondNav{width: 706px; top: -368px;}
                // 美食酒饮
                &.food_drinks .secondNav{width: 235px; top: -408px;}
                // 增值服务/企业商用
                &.value_added .secondNav{width: 706px; top: -448px;}

                &.phone:hover,&.computer:hover,&.pad:hover,&.smart_screen:hover,&.wearing:hover,
                &.headphone_speakers:hover,&.door_lock_routing:hover,&.fittings:hover,
                &.ecological_products:hover,&.household_appliances:hover,&.food_drinks:hover,
                &.value_added:hover{
                    .more{display: block;}
                }
            }
            .firstNavList:hover{
                background-color: rgba(255, 255, 255, 1);
            }
            .firstNavList:hover .left{
                opacity: 1;
            }
        }
    }

    // 轮播图左右按钮
    .carousel-control-prev,.carousel-control-next{
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto 12px;
        width: 56px;
        height: 56px;
        border-radius: 56px;
        background-color: rgba(0, 0, 0, 0.3);
        background-image: url('/img/icon01.svg');
    }
    .carousel-control-prev{
        // left: 360px;
        background-position: -11px -84px;
    }
    .carousel-control-next{
        // right: 148px;
        background-position: -92px -84px;
    }
    .carousel-control-prev:hover{
        background-position: -251px -84px;
    }
    .carousel-control-next:hover{
        background-position: -172px -84px;
    }
}


.main_category{
    margin: 0;
    .main{
        padding: 24px 0;
        div{
            justify-content: center;
            align-items: center;
            flex-direction: column;
            flex: 1 1 0%;
            padding: 8px 4px;
            font-size: 14px;
            text-align: center;
            cursor: pointer;
            img{
                width: 48px;
                height: 48px;
            }
            span{
                padding: 0 28px;
                margin-top: 15px;
            }
        }
        div:hover{
            opacity: 0.7;
        }
    }
}

.ad{
    margin: 0;
    .main{
        justify-content: space-between;
        div{
            width: 24.5%;
            img{
                width: 100%;
                cursor: pointer;
                // width: 291px;
                // height: 194px;

            }
        }
        div:hover{
            box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 36px;
        }
    }
}

// 秒杀
.spike{
    .title{
        .left_title{line-height: 64px;}
    }
    .main{
        .timeCount{
            flex-direction: column;
            align-items: center;
            width: 230px;
            height: 306px;
            background-color: rgba(207, 10, 44, 0.06);
            img,span{
                display: block;
            }
            img{
                margin: 55px auto 10px;
                width: 48px;
            }
            span{
                margin-bottom: 17px;
                text-align: center;
                line-height: 21px;
                font-size: 16px;
                color: rgb(0, 0, 0);
                opacity: 0.5;
            }
            img+span{
                margin-bottom: 35px;
                line-height: 26px;
                font-size: 20px;
                color: rgb(207, 10, 44);
                opacity: 1;
            }
            .timeBox{
                .time,.colon{margin-bottom: 0;}
                .time{
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                    background-color: rgba(0, 0, 0, 0.6);
                    border-radius: 2px;
                    font-size: 18px;
                    color: rgb(255, 255, 255);
                    opacity: 1;
                }
                .colon{
                    margin: auto 4px;
                    color: rgba(0, 0, 0, 0.6);
                    opacity: 1;
                }
            }
        }
        .commodity{
            width: 230px;
            height: 306px;
            .good_title,.good_dept{
                color: rgb(0, 0, 0);
            }
            .good_info{
                padding: 0 10px;
            }
        }
    }
}

// 限时购
.limited_time{
    .title{
        margin: 12px 0 8px 0;
        .left_title{
            &>span:nth-child(1){margin-right: 24px;}
            &>span:nth-child(2){
                margin-right: 10px;
                font-size: 18px;
                line-height: 24px;
                color: rgb(0, 0, 0);
                opacity: 0.4;
            }
            .timeBox{
                justify-content: flex-start;
                .time{
                    width: 32px;
                    height: 32px;
                    line-height: 32px;
                    text-align: center;
                    background-color: rgb(207, 10, 44);
                    border-radius: 2px;
                    font-size: 18px;
                    color: rgb(255, 255, 255);
                    opacity: 1;
                }
                .colon{
                    margin: auto 4px;
                    font-size: 15px;
                    font-weight: 500;
                    color: rgb(207, 10, 44);
                    opacity: 1;
                }
            }
        }
    }
    .main{
        .commodity:nth-child(1){margin-left: 0;}
        .commodity{
            width: 230.4px;
            height: 306.5px;
            .good_picture{
                height: 201.038px;
                img{
                    width: 68%;
                    height: 78%;
                }
            }
            .good_info{
                width: 100%;
                // height: 107px;
                text-align: center;
                .good_title,.good_dept{
                    word-break: break-all;
                }
                .good_title{
                    margin: 0;
                    font-weight: 600;
                }
                .good_dept{
                    margin-top: 4px;
                }
            }
        }
    }
}

// 爆款推荐
.blockbuster{
    .title{
        .left_title{
            width: 100%;
        }
    }
    .main{
        margin-top: -12px;
        .head_picture{
            margin-top: 12px;
            box-sizing: border-box;
            height: 306px;
            img{
                width: 472px;
            }
        }
        .head_picture:hover{box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 36px;}
        .commodity{
            margin-top: 12px;
            width: 230px;
            height: 306px;
            .good_picture{
                height: 225px;
            }
            .good_info{
                .tag_title{
                    justify-content: center;
                    .good_title{
                        margin: 0;
                        font-weight: 600;
                    }
                }
                .good_price{
                    margin-top: 8px;
                    .new{
                        margin-right: 0;
                    }
                }
            }
            &:nth-child(5){margin-left: 0;}
        }
    }
    .carousel2{
        margin-top: 24px;
        width: 100%;
        height: 120px;
        // 底部页索引
        .carousel-indicators{
            height: 32px;
            li{
                margin: auto 6px;
                width: 8px;
                height: 8px;
                background-color: rgba(0, 0, 0, 0.2);
                border: 0;
                border-radius: 8px;
            }
            .active{
                width: 12px;
                background-color: rgba(255, 255, 255, 1);
            }
        }
        img{cursor: pointer;}
    }
}

.sameType{
    .title{
        .left_title{
            // not()选择器用法----遗忘-----记复习
            &>span:not(.chosen){
                font-size: 18px;
                line-height: 24px;
                color: rgb(0, 0, 0);
                opacity: 0.6;
            }
            &>span:not(.chosen):hover{
                color: rgb(207, 10, 44);
                opacity: 1;
            }
        }
    }
    .main{
        margin-top: -12px;
        .commodity{
            margin-top: 12px;
            position: relative;
            .good_picture{
                // height: 253.927px;
                height: 67%;
                img{
                    width: 63%;
                    height: 72%;
                }
            }
            .top_tag{
                padding: 0 24px;
                text-align: center;
                position: relative;
                top: -20px;
                span{
                    display: block;
                    height: 20px;
                    padding: 0 8px;
                    background-color: rgb(251, 231, 234);
                    font-size: 12px;
                    font-weight: 400;
                    color: rgb(207, 10, 44);
                    line-height: 21px;
                    text-align: center;
                    border-radius: 4px;
                    overflow: hidden;
                    word-break: break-all;
                }
            }
            .good_info{
                height: 30%;
                .tag_title{
                    justify-content: center;
                    .good_title{
                        margin: 0;
                        font-weight: 600;
                    }
                }
                .good_dept{
                    margin: 8px 0 16px 0;
                }
                .good_price{
                    margin-top: 8px;
                    .new{
                        margin-right: 0;
                    }
                }
                .bottom_tag{
                    margin-top: 8px;
                    justify-content: center;
                    .tag{
                        height: 16px;
                        background-image: none;
                        background-color: rgb(255, 255, 255);
                        color: rgb(207, 10, 44);
                        border: 1px solid rgba(207, 10, 44, 0.4);
                    }
                    .tag:last-child{margin-right: 0;}
                }
            }
            &:nth-child(1){margin-left: 0;}
            &:nth-child(5){margin-left: 0;}
        }
    }
}

// 手机-企业购专选 
.business_purchase{
    .good_info{
        position: relative;
        top: -20px;
    }
}

// 耳机-智能音箱-智能眼镜
.hasTopTag{
    .good_info{
        position: relative;
        top: -20px;
    }
}


// end
.end{
    margin-top: 0px;
    height: 48px;
}
